﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="WebHoiChoMuaBan.Models" %>
<%@ Import Namespace="WebHoiChoMuaBan.Controllers.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	News
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadHolder" runat="server">
    <script type="text/javascript" src="/../Scripts/public.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
//            $("#Pages").change(function () {
//                $.get("/AdminNews/Index",
//                   { index: $(this).val() },
//                   function (data) {
//                       var selectedPage = $("#Pages").val();
//                       var newsTypeId = $("#newsTypeId").val();
//                       window.location = "/AdminNews/Index?selectedPage=" + selectedPage + "&newsTypeId=" + newsTypeId;
//                   });
//            });

            // Check and Uncheck all combobox
            $("#checkbox_all").click(function () {
                var n = $("#checkbox_all:checked").length;
                if (n == 1) {
                    $(".input_checkbox:not(#checkbox_news,#checkbox_member,#checkbox_product)").attr('checked', true);
                }
                else
                    $(".input_checkbox:not(#checkbox_news,#checkbox_member,#checkbox_product)").attr('checked', false);
            });

        });
    </script>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
